package com.xm.controller;

import com.xm.pojo.Sku;
import com.xm.service.AddDocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AddDocumentController {

    @Autowired
    private AddDocumentService addDocumentService;

    // 从数据库读取用户

//    @GetMapping("findAll")
//    public List<Sku> findAll() {
//        //Sku byId = addDocumentService.getById(30029571648l);
//        List<Sku> skuList = addDocumentService.list();
//        System.out.println("这里是controller");
//        return skuList;
//    }

    @GetMapping("findAll")
    public void findDataById() {
        Sku byId = addDocumentService.getById(30029571648l);
        System.out.println("这里是controller");
    }

}
